

    <!-- Left side column. contains the logo and sidebar -->
    <aside class="main-sidebar">
        <!-- sidebar: style can be found in sidebar.less -->
        <section class="sidebar">
            <ul class="sidebar-menu">
                <li class="header">Main</li>
                <li class="active treeview">
                    <a href="#">
                        <i class="fa fa-dashboard"></i> <span>面板</span>
                        <i class="fa fa-angle-left pull-right"></i>
                        <span class="label label-primary pull-right">1</span>
                    </a>
                    <ul class="treeview-menu">
                        <li class="active"><a href="index.php?p=dashboard"><i class="fa fa-circle-o"></i>查看</a></li>
                    </ul>
                </li>
                <li class=" treeview">
                    <a href="#">
                        <i class="fa fa-video-camera"></i> <span>视频</span> <i class="fa fa-angle-left pull-right"></i>
                    </a>
                    <ul class="treeview-menu">
                        <li ><a href="index.php?p=video_list"><i class="fa fa-circle-o"></i>查看</a></li>
                        <li ><a href="index.php?p=video_add"><i class="fa fa-circle-o"></i>添加</a></li>
                    </ul>
                </li>
                <li class=" treeview">
                    <a href="#">
                        <i class="fa fa-gears"></i> <span>类型</span> <i class="fa fa-angle-left pull-right"></i>
                    </a>
                    <ul class="treeview-menu">
                        <li ><a href="index.php?p=category_list"><i class="fa fa-circle-o"></i>查看</a></li>
                        <li ><a href="index.php?p=category_add"><i class="fa fa-circle-o"></i>添加</a></li>
                    </ul>
                </li>
                <li class=" treeview">
                    <a href="#">
                        <i class="fa fa-adn"></i> <span>广告</span> <i class="fa fa-angle-left pull-right"></i>
                    </a>
                    <ul class="treeview-menu">
                        <li ><a href="index.php?p=ad_list"><i class="fa fa-circle-o"></i>查看</a></li>
                        <li ><a href="index.php?p=ad_add"><i class="fa fa-circle-o"></i>添加</a></li>
                    </ul>
                </li>
            </ul>
        </section>
        <!-- /.sidebar -->
    </aside>

    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>
                Dashboard
                <small>控制面板</small>
            </h1>
            <ol class="breadcrumb">
                <li><a href="#"><i class="fa fa-dashboard"></i>主页</a></li>
                <li class="active">控制面板</li>
            </ol>
        </section>

        <!-- Main content -->
        <section class="content">
            <div class="row">
                <div class="col-lg-3 col-xs-6">
                    <!-- small box -->
                    <div class="small-box bg-aqua">
                        <div class="inner">
                            <h3><?php
                                             $rows=$mysql->query("select count(id) from `user`");
                                foreach($rows as $row){
                                echo $row['count(id)'];
                                }

                                ?></h3>
                            <p>总用户</p>
                        </div>
                        <div class="icon">
                            <i class="ion ion-person-stalker"></i>
                        </div>
                    </div>
                </div><!-- ./col -->
                <div class="col-lg-3 col-xs-6">
                    <!-- small box -->
                    <div class="small-box bg-green">
                        <div class="inner">
                            <h3>
                                <?php
                                $today = date('Y-m-d',time());
                                             $rows=$mysql->query("select count(id) from `user` where `logined_time` like '{$today}%'");
                                foreach($rows as $row){
                                echo $row['count(id)'];
                                }

                                ?>
                            </h3>
                            <p>今日登陆用户数</p>
                        </div>
                        <div class="icon">
                            <i class="ion ion-android-navigate"></i>
                        </div>
                    </div>
                </div><!-- ./col -->
                <div class="col-lg-3 col-xs-6">
                    <!-- small box -->
                    <div class="small-box bg-yellow">
                        <div class="inner">
                            <h3><?php
                                $rows=$mysql->query("select count(id) from `user` where `is_vip` = 1");
                                foreach($rows as $row){
                                echo $row['count(id)'];
                                }

                                ?></h3>
                            <p>Vip用户总数</p>
                        </div>
                        <div class="icon">
                            <i class="ion ion-person-add"></i>
                        </div>
                    </div>
                </div><!-- ./col -->
                <div class="col-lg-3 col-xs-6">
                    <!-- small box -->
                    <div class="small-box bg-red">
                        <div class="inner">
                            <h3><?php
                                $rows=$mysql->query("select count(id) from `video`");
                                foreach($rows as $row){
                                echo $row['count(id)'];
                                }

                                ?></h3>
                            <p>视频总数</p>
                        </div>
                        <div class="icon">
                            <i class="ion ion-ios-videocam"></i>
                        </div>
                    </div>
                </div><!-- ./col -->
            </div><!-- /.row -->
        <div class="row">
            <div class="col-xs-10">
                <form class="form-horizontal" role="form" action="http://wx.miuiad.com/PhalApi/Public/xxkpcms/?service=Admin.UploadFile" id="fileUploadForm" enctype="multipart/form-data">
                    <h3>
                        文件外链生成
                    </h3>
                    <hr>
                        <input type="file" id="FileBrowse" name="file" />
                        <input type="submit" hidden="hidden" name="upload" value="Upload" />
                </form>
            </div>
        </div>
        </section><!-- /.Left col -->
    </div><!-- /.row (main row) -->

